<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />

	</head>

	<body>

		<script type="text/javascript">
			var arr = [];
			function fn(min,max,n){
				
				while(arr.length<n){
					var num = Math.floor(Math.random()*(max-min+1)+min);
					if(arr.indexOf(num)==-1){
						arr.push(num)
					}
				}
				// return arr.sort(function(x,y){
				// 	return x>y;
				// })
			}
			fn(10,100,5);
			console.log(arr)
			console.log(Math.PI)
			
			for(let i = 1;i < 5;i++){
				setTimeout(function(){
					console.log(i)
				},1000)
			}
			
		</script>
	</body>

</html>
